﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GalaSoft.MvvmLight.Messaging;

namespace MVVMlightConsole
{
    class Program
    {
        static void Main(string[] args)
        {
            Messenger.Default.Register<Message>(new object(), OnReceiveMessage);
            Messenger.Default.Send(new Message());
            var messenger=new Messenger();
            Messenger.Default.GetHashCode();
            messenger.GetHashCode();
            double x = 1.2;
            int interval = (int)x;
            Console.ReadLine();
        }

        private static void OnReceiveMessage(Message message)
        {
            Console.WriteLine("haha");
        }
    }

    public class Message
    {

    }
}
